package edu.ptu.acl.exception;

import edu.ptu.acl.common.MyConstants;
import lombok.Getter;

@Getter
public class ApiException extends RuntimeException{
    private int code;
    private String msg;

    public ApiException(String msg) {
        this.code = 5000;
        this.msg = msg;
    }

    public ApiException(MyConstants.ResultCode resultCode) {
        this.code = resultCode.getCode();
        this.msg = resultCode.getMsg();
    }


}
